const Detail = () =>
    import ('@/components/contents/Detail.vue')
const Add = () =>
    import ('@/components/contents/Add.vue')
export default [{
    path: '/add',
    name: 'add',
    component: Add,
    meta: { requiresAuth: true }
}, {
    path: '/detail/:tid',
    name: 'detail',
    props: true,
    component: Detail,
    meta: {
        // 通过后台接口动态添加到路由 addRoutes
        types: ['get', 'add', 'delete']
    }
}]